<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductSku extends Model
{
    //设置表的类型和表名
    protected $table = 'product_sku';
    protected $primaryKey = 'id';
    public $timestamps = true;
    protected $guarded = [];

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id', 'id');
    }
}
